package com.xiyoo.cw.domain.task;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @Description
 * @Author zhouzhongqing
 * @Date 2025/5/13 12:53
 * @Version 1.0
 **/
@Data
public class CheckinRequest {

//    @ApiModelProperty("邮箱")
//    @NotEmpty(message = "email为必填")
//    @Pattern(regexp = "^[a-zA-Z0-9._%+-]+@mhdchina\\.cn$", message = "请输入正确的邮箱，必须以@mhdchina.cn为后缀")
//    private String email;

    @ApiModelProperty("任务ID")
    @NotNull(message = "任务ID为必填")
    private Long taskId;

    @ApiModelProperty("任务名称")
    @NotEmpty(message = "任务名称为必填")
    private String taskName;

    @ApiModelProperty("减碳量")
    @NotNull(message = "减碳量为必填")
    private Integer carbonReduction;
}
